using System;
using System.Collections.Generic;

namespace QUAN_LY_NGAN_HANG_CAU_HOI_TRAC_NGHIEM
{
    public class QuyenBUS
    {

       private QuyenDAL quyen;

        public Guid MaQuyen
        {
            get { return quyen.MaQuyen; }
            set { quyen.MaQuyen = value; }
        }
              
        public string GhiChu
        {
            get { return quyen.GhiChu; }
            set { quyen.GhiChu = value; }
        }

        public QuyenBUS()
        {
            quyen = new QuyenDAL();
        }

        public QuyenBUS(QuyenDAL en)
        {
            quyen = en;
        }

        public static QuyenBUS[] LayTatCaQuyen()
        {
            List<QuyenBUS> lst = new List<QuyenBUS>();
            foreach (QuyenDAL cn in QuyenDAL.LayTatCaQuyen())
            {
                lst.Add(new QuyenBUS(cn));
            }
            return lst.ToArray();
        }

        public void ListLinhVucTheoGiaoVien()
        {
            throw new System.Exception("Not implemented");
        }
    }
}